<style type="text/css">
#apDiv1 {
	position: absolute;
	left: 561px;
	top: 318px;
	width: 105px;
	height: 27px;
	z-index: 1;
}
#apDiv2 {
	position: absolute;
	left: 457px;
	top: 225px;
	width: 210px;
	height: 32px;
	z-index: 1;
}

#apDiv4 {
	position: relative;
	left: 431px;
	top: -80px;
	width: 260px;
}

#apDiv5 {
	position: relative;
	left: 630px;
	top: -100px;
	width: 100px;
}
</style>
<div id="contener" _height="auto">
	<div class="left_menu">
		<?php $this->beginWidget('application.widget.site.classWidget'); ?>
		<?php $this->endWidget(); ?>
		<?php $this->beginWidget('application.widget.site.productWidget'); ?>
		<?php $this->endWidget(); ?>
	</div>
	<div class="main">
		<?php $this->beginWidget('application.widget.site.newWidget'); ?>
		<?php $this->endWidget(); ?>
		<div class="right_mainBox">
			<div class="right_mainBox_top"></div>
			<div class="mainContentBox"> <img src="images/buySTEP4.png" width="724" height="75" class="buySTEP" />
				<div class="memberBOX3">
					<h4>親愛的&nbsp; <span class="name"> <?=Yii::app()->user->name?></span>&nbsp;會員您好:謝謝您的訂購,您的訂單編號為: <span class="name">
						<?=$row->oid?>
						</span></h4>
					<table width="720" border="0" align="center" cellpadding="0" cellspacing="3">
						<tr>
							<th colspan="3"> 購物明細</th>
						</tr>
						<tr>
							<td scope="col" width="500">明細</td>
							<td>數量</td>
							<td scope="col">優惠價</td>
						</tr>
						<?php
						foreach($row->items as $item){
						?>
						<tr>
							<td><a href="<?=Yii::app()->createUrl('shop/detail',array('pid'=>$item->pid))?>" target="_blank" >&#8226;&nbsp;
								<?=$item->product->pname?>
								</a></td>
							<td>
								<?=$item->number?>
							</td>
							<td>$
								<?=$item->price*$item->number?>
							</td>
						</tr>
						<?php
						}
						?>
						<?php
						if($row->coin){
						?>
						<tr>
							<td>購物金折抵</td>
							<td></td>
							<td>$<?=$row->coin?></td>
							<td></td>
						</tr>
						<?php
						}
						?>
						<tr>
							<td>運費</td>
							<td></td>
							<td>$<?=Yii::app()->params['freight']?></td>
							<td></td>
						</tr>
					</table>
					<div id="apDiv4">總計金額<span class="red">NT$<?=$row->total_final?></span>元</div>
					<div id="apDiv5">
						<input type="submit" name="button" id="button" value="繼續購物" onclick="self.location.href='<?=Yii::app()->createUrl('shop/index')?>'"/>
					</div>
				</div>
			</div>
			<div class="right_mainBox_bottom"></div>
		</div>
	</div>
</div>
